package com.ks.winterwarmimage.mqtt.service;

import android.os.Binder;


/**
 * 服务在绑定时传递给活动的内容:-
 * <ul>
 * <li>参考服务
 * <li>启动服务时提供的activityToken
 * </ul>
 *
 */
class MqttServiceBinder extends Binder {

    private MqttService mqttService;
    private String activityToken;

    MqttServiceBinder(MqttService mqttService) {
        this.mqttService = mqttService;
    }

    /**
     * @return 参考服务
     */
    public MqttService getService() {
        return mqttService;
    }

    void setActivityToken(String activityToken) {
        this.activityToken = activityToken;
    }

    /**
     * @return 启动服务时提供的activityToken
     */
    public String getActivityToken() {
        return activityToken;
    }

}